package com.neusoft.nep.admin.entity;

import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

public class AqiLevelStatistic {
    private final StringProperty id; // For the numerical level (1, 2, 3...)
    private final StringProperty levelDescription; // For "优", "良", "轻度污染" etc.
    private final StringProperty detailedDescription; // For "空气质量令人满意..."
    private final StringProperty count; // For the distribution count

    public AqiLevelStatistic(String id, String levelDescription, String detailedDescription, String count) {
        this.id = new SimpleStringProperty(id);
        this.levelDescription = new SimpleStringProperty(levelDescription);
        this.detailedDescription = new SimpleStringProperty(detailedDescription);
        this.count = new SimpleStringProperty(count);
    }

    public String getId() {
        return id.get();
    }

    public StringProperty idProperty() {
        return id;
    }

    public String getLevelDescription() {
        return levelDescription.get();
    }

    public StringProperty levelDescriptionProperty() {
        return levelDescription;
    }

    public String getDetailedDescription() {
        return detailedDescription.get();
    }

    public StringProperty detailedDescriptionProperty() {
        return detailedDescription;
    }

    public String getCount() {
        return count.get();
    }

    public StringProperty countProperty() {
        return count;
    }
}